<form action="<?php echo base_url() ?>register/employer" method="post" data-abide accept-charset="utf-8">
	<div class="large-8 columns">
		<div class="email-field">
	    	<label>Email: <small>required</small>
	    		<font><?php echo form_error('email'); ?></font>
	      		<input class="radius" type="email" name="email"  value="<?php echo set_value('email'); ?>" required placeholder="Your Email">
	    	</label>
	    	<small class="error">An email address is required.</small>

	  	</div>
	  	<div class="password-field">
	    	<label>Mật khẩu: <small>required</small>
	    		<font><?php echo form_error('password'); ?></font>
	      		<input class="radius" type="password" id="password" name="password" value="<?php echo set_value('password'); ?>" required placeholder="Your Password">
	    	</label>
	    	<small class="error">Your password must match the requirements</small>
	  	</div>
	  	<div class="password-confirmation-field">
	    	<label>Xác nhận mật khẩu: <small>required</small>
	    		<font><?php echo form_error('cpassword'); ?></font>
	      		<input class="radius" class="medium" type="password" name="cpassword" value="<?php echo set_value('cpassword'); ?>" required data-equalto="password" placeholder="Confirm Your Password">
	    	</label>
	    	<small class="error">The password did not match</small>
	  	</div>
	  	<div class="name-field">
	    	<label>Tên công ty: <small>required</small>
	    		<font><?php echo form_error('ten'); ?></font>
	      		<input class="radius" type="text" name="ten" value="<?php echo set_value('ten'); ?>" required pattern="[a-zA-Z]+" placeholder="Your company name">
	    	</label>
	    	<small class="error">Company's name is required and must be a string.</small>
	  	</div>
	  	<div>
	  		<lable>Quy mô công ty:
		  		<select class="radius" name="quymo" required>
		  			<option selected disabled>Chọn số nhân viên trong công ty</option>
		  			<option value="Ít hơn 10 nhân viên">Ít hơn 10 nhân viên</option>
		  			<option value="Từ 10-24 nhân viên">Từ 10-24 nhân viên</option>
		  			<option value="Từ 25-99 nhân viên">Từ 25-99 nhân viên</option>
		  			<option value="Từ 100-499 nhân viên">Từ 100-499 nhân viên</option>
		  			<option value="Từ 500-999 nhân viên">Từ 500-999 nhân viên</option>
		  			<option value="Trên 1.000 nhân viên">Trên 1.000 nhân viên</option>
		  		</select>
	  		</lable>
	  	</div>
	  	<div>
	  		<label>Sơ lược về công ty:
	  			<textarea name="soluoc" rows="5" cols="100" placeholder="Thông tin sơ lược về công ty"></textarea>
	  		</label>
	  	</div>
	  	<div>
	  		<label>Địa chỉ:
	  			<font><?php echo form_error('address'); ?></font>
	  			<input class="radius" type="text" name="address" value="<?php echo set_value('address'); ?>" placeholder="Your Address">
	  		</label>
	  	</div>
	  	<div>
	  		<label for="url" role="alert">Website: <small>required</small>
          		<input type="url" id="url" name="website" placeholder="http://zurb.com" required data-invalid="" aria-invalid="true" value="<?php echo set_value('website'); ?>">
        	</label>
        	<small class="error">Valid URL required.</small>
	  	</div>
	  	<div>
	  		<label>Số điện thoai liên hệ: <small>number only</small>
	  			<font><?php echo form_error('phone'); ?></font>
	  			<input class="radius" type="text" name="phone" value="<?php echo set_value('phone'); ?>" onkeyup="this.value=this.value.replace(/[^\d]/,'')" placeholder="Your Phone Number">
	  		</label>
	  	</div>
	  	<div class="name-field">
	    	<label>Người liên hệ: <small>required</small>
	    		<font><?php echo form_error('lh'); ?></font>
	      		<input class="radius" type="text" name="lh" value="<?php echo set_value('lh'); ?>" required pattern="[a-zA-Z]+" placeholder="Your contact'name">
	    	</label>
	    	<small class="error">Contact'name is required and must be a string.</small>
	  	</div>
	  	<div class="email-field">
	    	<label>Email liên hệ: <small>required</small>
	    		<font><?php echo form_error('email_lh'); ?></font>
	      		<input class="radius" type="email" name="email_lh"  value="<?php echo set_value('email_lh'); ?>" required placeholder="Your Contact Email">
	    	</label>
	    	<small class="error">An email address is required.</small>

	  	</div>
	  </form>
	  	<div>
	  		<label>Logo:
	  			<form id="imageform" method="post" enctype="multipart/form-data" action='<?php echo base_url(); ?>register/doupload'>
					<input type="file" name="photoimg" id="photoimg" />
				</form>
				<div id='preview'></div>
	  		</label>
	  	</div>
	  	<hr>
	  	<button type="submit" class="radius">Submit</button>
	  	<button class="radius" type="reset">Reset</button>
	</div>

<script type="text/javascript" >
 $(document).ready(function() { 
		
            $('#photoimg').live('change', function()			{ 
			           $("#preview").html('');
			    $("#preview").html('<img src="<?php echo base_url(); ?>public/img/loader.gif" alt="Uploading...."/>');
			$("#imageform").ajaxForm({
						target: '#preview'
		}).submit();
		
			});
        }); 
</script>